﻿<%@ Page Title="Transporte" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Transporte.aspx.cs" Inherits="uVirtualWeb.List.Transporte" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <h2>
        Transporte de Pessoas
    </h2>
    <p></p>
    <asp:UpdatePanel runat="server" ID="upVeiculos" UpdateMode="Conditional">
        <Triggers>
        </Triggers>
        <ContentTemplate>
            <asp:ListView runat="server" ID="lstVeiculos" ItemPlaceholderID="PlaceHolder1">
                <LayoutTemplate>
                    <table class="table table-bordered table-hover">
                        <tr>
                            <th>ID</th>
                            <th>Modelo</th>
                            <th>Nº de Acentos</th>
                            <th>Placa</th>
                            <th></th>
                        </tr>
                        <asp:PlaceHolder runat="server" ID="PlaceHolder1">
                        </asp:PlaceHolder>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                        <tr>
                            <td><asp:Label ID="Label0" runat="server"><%# Eval("idVeiculo") %></asp:Label></td>
                            <td><asp:Label ID="Label1" runat="server"><%# Eval("VeiculoModelo.nome") %></asp:Label></td>
                            <td><asp:Label ID="Label2" runat="server"><%# Eval("acentos") %></asp:Label></td>
                            <td><asp:Label ID="Label3" runat="server"><%# Eval("placa") %></asp:Label></td>
                            <td><center><a class="btn" data-toggle="modal" role="button">Detalhes</a></center></td>
                        </tr>
                </ItemTemplate>
                <EmptyItemTemplate>
                    Não existem itens a serem listados.
                </EmptyItemTemplate>
            </asp:ListView>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        $("#menu_transporte").addClass("active");
    </script>
</asp:Content>
